<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

     <script type="text/javascript">
         var protocol = window.location.protocol;
         document.write('<script type="text/javascript" src="' + protocol + '//csdnimg.cn/pubfooter/js/repoAddr2.js?v=' + Math.random() + '"></' + 'script>');
    </script>

<title>文章审核</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" rel="Stylesheet" href="resource/css/admin-main.css" />
<script type="text/javascript" src="resource/js/jquery-1.8.3.js"></script>
<!-- <script type="text/javascript" src="resource/js/csdn.js"></script> -->
<script type="text/javascript" src="resource/js/master.js"></script>



       

        
</head>

<body>
      <jsp:include page="../inc/Adhead_nav.jsp" />
     <!--new top-->
     <!--new top-->
    <div id="wrap">
    

        <div class="head">

            <div class="user_info">
                <dl>
                    <dt><a href="http://my.csdn.net/"><img src="resource/images/admin.png" alt="qq_39485384" /></a></dt>
                    <dd>
                        <ul>
                            <li class="user_name"><span>用户管理</span></li>
                        </ul>
                    </dd>
                </dl>
            </div>

            <div style="float:right; margin-top:20px; color:Red;">
                
            </div>
        </div>


        <div class="tabs_header">
            <ul id="ul_tab" class="tabs"  style="width:120%">
                <li><a href="AdArticleSer"><span>文章审核</span></a></li>
                <li><a href="AdUserSer"><span>用户管理</span></a></li>
                <li><a href="AdColumnSer"><span>专栏审核</span></a></li>
            </ul>
        </div>
        <script type="text/javascript">setTab();</script>

        
<script type='text/javascript' src='/content/scripts/postlist.js?v=1.1'></script>

<div id="sel_div" class="h_status">
权限：<select id="power" onchange="window.location=this.value;">
<option>&nbsp;请选择&nbsp;</option>
<option value = "AdUserSer">全部</option>
<c:forEach items="${power}" var="power">
<option value="AdUserSer?powerId=${power.getPowerId()}">${power.getPowerName()}</option>
</c:forEach>
</select>
等级：<select id = "rank" onchange="window.location=this.value;">
<option>&nbsp;请选择&nbsp;</option>
<option value = "AdUserSer">全部</option>
<c:forEach items="${rank}" var="rank">
<option value="AdUserSer?rankId=${rank.getRankId()}">${rank.getRankName()}</option>
</c:forEach>
</select>
</div>
<table id="lstBox" cellspacing="0">
<tr><th class="tdleft" style="width:50px">编号</th><th style="width:100px;">权限</th><th style="width:150px;">用户账号</th><th style="width:50px;">等级</th><th style="width:150px;">注册时间</th><th style="width:50px; text-align :center;">操作</th></tr>
<c:forEach items="${user}" var="user"><tr>
<td class="tdleft">${user.getUserId()}</td>
<td>${user.getPower().getPowerName()}</td>
<td>${user.getUserName()}</td>
<td>${user.getRank().getRankName()}</td>
<td>${user.getStringRegTime()}</td>
<td style="width:50px;"><c:choose>
<c:when test="${user.getPower().getPowerId()==1}">
<a href="AdUserSer?op=renewLogin&id=${user.getUserId()}">恢复</a>
</c:when>
<c:when test="${user.getPower().getPowerId()==2}"> 
<a href="AdUserSer?op=restrictLogin&id=${user.getUserId()}">限制</a>
</c:when>

</c:choose></td></tr></c:forEach>
</table>
<div class="page_nav"><span>  共1页</span><strong>1</strong> </div>



<script type="text/javascript" >
    $(function(){
        $("#lstBox tr").each(function(){
            var tr=$(this);            
            if(tr.text().indexOf("待审核")>-1)
            {
                var tds=$(tr.find("td")[5]);
                var a= $(tds.find("a"));
                a.each(function(){
                    if($(this).text().indexOf("置顶")>-1)
                    {
                        $(this).remove();
                        tds.html(tds.html().replace("|  |","|"));
                    }
                });
            }           
        });
    });
</script>

    </div>
	<jsp:include page="../inc/footer_nav1.jsp"></jsp:include>
</body>
</html>
